package com.zhida.userservice.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhida.common.dto.UserDTO;
import com.zhida.common.entity.Result;
import com.zhida.userservice.entity.User;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Your Name
 * @since 2024-07-15
 */
@Service
public interface IUserService extends IService<User> {

    Result<?> passwordLogin(UserDTO userDTO);

    Result<?> register(UserDTO userDTO);

    Result<?> updateUserInfo(User user);

    Result<?> getUserInfo() throws JsonProcessingException;

    Result<?> sendCode(String username);

    Result<?> codeLogin(UserDTO userDTO);
}
